import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import './plugins/element.js';
import { Message } from 'element-ui';
import axios from '@/plugins/axios';
import '../src/assets/css/global.css';
import './utils/utils';
import JsonExcel from 'vue-json-excel';
import './assets/css/scroller.css';

import AMap from 'vue-amap';
Vue.use(AMap);
AMap.initAMapApiLoader({
  key: '9bbe678fb07be25446ce6933b365df3e', //申请的key
  plugin: ['AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType']
});

Vue.component('downloadExcel', JsonExcel);

Vue.config.productionTip = false;
Vue.prototype.$message = Message;
Vue.prototype.axios = axios;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
